<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>IIFE 模式</title>
</head>
<body>
<script src="file.js"></script>
<script>
    console.log(module.data);
    module.func()

    // console.log(module.i);
    // module.f()
</script>
</body>
</html>